PersonBonusPanel = function(){
	var this_panel = this;
	
	this.listeners = {
			show : function(){
				this_panel.getTopToolbar().init();
			}
	};
	
	var store = new Ext.data.JsonStore({
		fields : [ "id","name","busiResult","supportResult","managerResult","bonusSum"]
	});
	
	PersonBonusPanel.superclass.constructor.call(this, {
		title : "季度奖金汇总",
		loadMask : true,
		stripeRows : true,
		enableHdMenu : false,
		sm: new Ext.grid.RowSelectionModel({singleSelect:true}),
		colModel: new Ext.grid.ColumnModel({
			defaults : {
				align : "center",
				sortable : true
			},
			columns:[{header : "销售人员",dataIndex : "name", align : "left"},
			         {header : "业务经理奖",dataIndex : "busiResult",xtype:"numbercolumn", format:"0"},
			         {header : "技术支持奖",dataIndex : "supportResult",xtype:"numbercolumn", format:"0"},
			         {header : "部门经理奖",dataIndex : "managerResult",xtype:"numbercolumn", format:"0"},
			         {header : "奖级合计",dataIndex : "bonusSum",xtype:"numbercolumn", format:"0"}
			         ]
		}),
		viewConfig: {
	        forceFit: true
		},
		store : store,
		tbar : new SeasonToolbar({
			panel : this_panel,
			url : "item/personBonus.action",
			type : "busi"
		})
	});
};
Ext.extend(PersonBonusPanel, Ext.grid.GridPanel);
var personBonusPanel = new PersonBonusPanel();